home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / GMS / Includes / games / tasks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-11  |  1.4 KB  |  44 lines

  1.     IFND GMS_TASKS_H
  2. GMS_TASKS_H  SET  1
  3.  
  4. /*
  5. **    $VER: tasks.h V0.6B
  6. **
  7. **      (C) Copyright 1996-1997 DreamWorld Productions.
  8. **          All Rights Reserved
  9. */
  10.  
  11.     IFND    EXEC_TYPES_I
  12.     include 'exec/types.i'
  13.     ENDC
  14.  
  15. /****************************************************************************
  16. ** This task structure is lodged into tc_UserData (see exec/tasks.i), so
  17. ** do not change that field when using GMS.  A UserData field exists
  18. ** here so that you may use it if necessary.  Other than this, DO NOT USE
  19. ** ANY GMSTASK FIELDS FOR ANYTHING OTHER THAN DEBUGGING PURPOSES.
  20. */
  21.  
  22. struct  GMSTask {
  23.   APTR  UserData;         /* Pointer to user data, no restrictions */
  24.   APTR  TaskName;         /* Name of the task, if specified */
  25.  
  26.   /* Private from here on */
  27.  
  28.   APTR  MasterPrefs;      /* Library preferences */
  29.   APTR  ScreenPrefs;      /* Screen preferences */
  30.   APTR  SoundPrefs;       /* Sound preferences */
  31.   APTR  BlitterPrefs;     /* Blitter preferences */
  32.   APTR  ResourceChain;    /* The resource chain, private */
  33.   ULONG ReqStatus;        /* Private, used internally */
  34.   ULONG BlitKey;          /* Resource key */
  35.   ULONG AudioKey;         /* Resource key */
  36.   ULONG ViewKey;          /* Resource key */
  37.   APTR  DestructStack;    /* Stack to use for DestructCode */
  38.   APTR  DestructCode;     /* Pointer to self destruct code routine */
  39.   BYTE  AlertState;       /* Private */
  40.   BYTE  Pad;              /* Reserved */
  41. };
  42.  
  43.   ENDC    /* GMS_TASKS_H */
  44.